//
//  GMKnowlegeCell.m
//  Teecloud
//
//  Created by 小熊 on 2018/6/20.
//  Copyright © 2018年 小熊. All rights reserved.
//

#import "GMKnowlegeCell.h"
@interface GMKnowlegeCell ()
@property (weak, nonatomic) IBOutlet UILabel *stateLab;
@property (weak, nonatomic) IBOutlet UILabel *titleName;
@property (weak, nonatomic) IBOutlet UILabel *timeLenth;
@property (weak, nonatomic) IBOutlet UIImageView *paly;


@end
@implementation GMKnowlegeCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}
-(void)setModel:(GMDirsModel *)model{
    _model = model;
    if (model.IsStudied) {
        self.stateLab.text = @"【已学】";
        self.stateLab.textColor = [UIColor colorWithHexString:@"FF8D00"];
    }else{
        self.stateLab.text = @"【未学】";
        self.stateLab.textColor = kBlackColor;
    }
    self.titleName.text = model.Name;
    self.timeLenth.text = model.TimeLen?model.TimeLen:@"00:00";
}
@end
